package com.fan.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.fan.entity.UserEntity;
import com.fan.mapper.UserMapper;
import com.fan.service.UserService;
import org.springframework.stereotype.Service;

@Service
public class UserServiceImpl extends ServiceImpl<UserMapper, UserEntity> implements UserService {


    @Override
    public void saveEntity(UserEntity userEntity) {
        save(userEntity);
    }

    @Override
    public void deleteById(int id) {
        removeById( id);
    }

    @Override
    public void update(UserEntity userEntity) {
        updateById(userEntity);
    }

    @Override
    public UserEntity selectById(int id) {
        return getById( id);
    }

    @Override
    public Page<UserEntity> selectPage() {
        return null;
    }


}
